|
Public Member Functions
|
|
Matrix (void) |
|
Construct a matrix without initializing its
elements. The values stored in the matrix are undefined.
|
|
Matrix (const Matrix &m) |
|
Matrix (float f11, float f12,
float f13, float f14, float f21, float f22, float f23, float f24,
float f31, float f32, float f33, float f34, float f41, float f42,
float f43, float f44) |
|
Construct the matrix by passing all the 16
values.
|
|
Matrix (const double
*pMatrix) |
|
Construct a matrix from an array of double
values. At least 16 values should be contained in the array.
|
float & |
operator() (int iRow, int
iColumn) |
|
Returns a reference to a specific element in
the matrix.
|
float |
operator() (int iRow, int
iColumn) const |
|
Returns the value of a specific element in
the matrix.
|
|
operator const float * (void)
const |
|
Returns a pointer to the matrix data as a
pointer to float values.
|
|
operator float * (void) |
|
Returns a pointer to the constant matrix
data as a pointer to float values.
|
Matrix
& |
SetIdentity (void) |
|
Sets this matrix to be the identity matrix.
|
bool |
IsIdentity (void) const |
|
Return true if the matrix is the
identity matrix.
|
bool |
IsRigid (void) const |
|
Returns true if the transformation
represented by the matrix is rigid (contains only translation and
rotation, not scale).
|
Matrix
& |
operator *= (float) |
|
Multiplies the matrix with a scalar value.
|
Matrix |
operator * (const Matrix &m)
const |
|
Multiplies two matrices.
|
Matrix |
operator * (float) const |
|
Returns the multiplication of a matrix and a
scalar.
|
Matrix |
operator+ (const Matrix &)
const |
|
Returns the sum of two matrices.
|
Matrix
& |
operator *= (const Matrix &m) |
|
Multiplies the matrix with another matrix.
|
bool |
operator== (const Matrix &m)
const |
|
Return true if the two matrices are
identical.
|
void |
SetRow (int iRowIndex, const
Vector
&vValue) |
|
Sets the values in a row of the matrix.
|
Matrix
& |
Transpose (void) |
|
Transposes the matrix and returns it.
|
Matrix
& |
Invert (void) |
|
Inverts the matrix and returns it.
|
Matrix
& |
FromEuler (const Vector
&vAngles) |
|
Creates a rotation matrix from the given
euler values stored in the vector and returns it.
|
Vector |
ToEuler (void) const |
|
Converts a rotation matrix to euler values
returns them in a vector.
|
Matrix
& |
FromAxisAngle (const
Vector
&vAxis, float fAngle) |
|
Calculates a rotation matrix from an axis
and angle and returns it.
|
Vector |
Transform (const Vector &v, float
fW=1.0f) const |
|
Transforms a vector by the matrix and
returns the result. The fourth component of the vector (if you are
using homogeneous coordinates) can be passed in the fW parameter.
|
Vector |
ProjectedTransform (const
Vector &v,
float fW=1.0f) const |
|
Transforms a point (represented by a
Vector) by the
matrix and returns the result. This point is assumed to be
represented in homogenous coordinates, with a fourth (W) value.
After the transformation the result vector will be divided by the
resulting W component.
|
Vector |
Transform (const Vector &v, float
fW, float &fRW) const |
|
Transforms a point (represented by a
Vector) by the
matrix, and returns all four homogeneous coordinates.
|
Vector |
TransformDirection (const
Vector &v)
const |
|
Transform a direction vector by the matrix.
|
mudbox::Matrix mudbox::Matrix
mudbox::Matrix mudbox::Matrix mudbox::Matrix mudbox::Matrix
mudbox::Matrix mudbox::Matrix mudbox::Matrix mudbox::Matrix
mudbox::Matrix mudbox::Matrix
mudbox::Matrix mudbox::Matrix mudbox::Matrix mudbox::Matrix
mudbox::Matrix mudbox::Matrix mudbox::Matrix mudbox::Matrix